package com.group.three.mapper;


import com.group.three.pojo.VideoTag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xueyong
 * @since 2022-11-03
 */
@Mapper
public interface VideoTagMapper {

    List<VideoTag> selectAllTag(Integer pageNum, Integer pageSize);
    List<VideoTag> selectByVideoTag(@Param("videoTag") Long videoTag,
                                    @Param("isEnable") Integer isEnable);
    int deleteTagByTagId(Long tagId);
    List<VideoTag> searchByVideoTag(String inputText);
    int addNewTag(VideoTag videoTag);

    List<VideoTag> searchTagLogByUserNameOrTagName(String inputText);

   Long selectTagIdByTagName(@Param("tag") String tag,
                                 @Param("isEnable") Integer isEnable);
}
